package cn.zhangjie.org.mapper;

import cn.zhangjie.basic.mapper.BasicMapper;
import cn.zhangjie.org.domain.Employee;
import cn.zhangjie.org.query.EmployeeQuery;
import cn.zhangjie.system.domain.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper extends BasicMapper<Employee> {

    void saveEmoployeeRole(@Param("eid") Long id,@Param("rid") Long role_id);

    void removeEmployeeRole(Long id);
    //2.获取当前登陆人的所有权限 - sn
    List<String> loadPermissionsByLogininfoId(Long id);
    //3.获取当前登陆人的所有菜单 - 【难度】
    List<Menu> loadMenusByLogininfoId(Long id);

    Employee loadByLogininId(Long id);
    //
    List<Employee> findByShopId(Long shopId);
}